%compileFiles = ls('*.cpp');
%compileFilesNumber=size(compileFiles,1);
%for i=1:compileFilesNumber
%    fprintf('compiling %s\n',compileFiles(i,:));
%    mex -O compileFiles(i,:)
%end
mex -O NUFFT2DauxiliaryMEXMultiThreadedDoublePrecision.cpp
mex -O NUFFT2DauxiliaryMEXMultiThreadedSinglePrecision.cpp
mex -O NUFFT2DauxiliaryMEXSingleThreadedDoublePrecision.cpp
mex -O NUFFT2DauxiliaryMEXSingleThreadedSinglePrecision.cpp
mex -O NUFFT2DauxiliaryMEXSingleThreadedSinglePrecisionMemorySave.cpp
mex -O NUFFT3DauxiliaryMEXMultiThreadedDoublePrecision.cpp
mex -O NUFFT3DauxiliaryMEXMultiThreadedSinglePrecision.cpp
mex -O NUFFT3DauxiliaryMEXSingleThreadedDoublePrecision.cpp
mex -O NUFFT3DauxiliaryMEXSingleThreadedSinglePrecision.cpp
mex -O NUFFT3DauxiliaryMEXSingleThreadedSinglePrecisionMemorySave.cpp